package org.cqu_proj.demo.entity;

import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "counters")
public class Counter {
    private String _id;         // 用于标识计数器的ID
    private int seq;  // 当前计数器值

    public String get_id() {
        return _id;
    }

    public void set_id(String _id) {
        this._id = _id;
    }

    public int getSeq() {
        return seq;
    }

    public void setSeq(int seq) {
        this.seq = seq;
    }
}
